|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.SwingWorker<java.lang.Void,java.lang.Void>
j3deditor.bin.hierarchy.util.HierarchyWorker
j3deditor.bin.hierarchy.util.ProjectSaver
public class ProjectSaver
Tool for saving scenes.
Uses com.sun.j3d.utils.scenegraph.io.SceneGraphStreamWriter
to save BranchGroup.
SceneGraphStreamWriter| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.SwingWorker |
|---|
javax.swing.SwingWorker.StateValue |
| Constructor Summary | |
|---|---|
ProjectSaver(J3DeScene scene)
Creates an instance of ProjectSaver
which is able to save BranchGroup from the given scene. |
|
| Method Summary | |
|---|---|
protected java.lang.Void |
doInBackground()
Performs the saving process in a background thread. |
protected void |
done()
Notifies all listeners that object(s) have been altered. |
void |
saveProject(java.lang.String filePath)
Saves the scene to the given file. |
| Methods inherited from class j3deditor.bin.hierarchy.util.HierarchyWorker |
|---|
addHierarchyListener, notifyListeners, removeHierarchyListener |
| Methods inherited from class javax.swing.SwingWorker |
|---|
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectSaver(J3DeScene scene)
ProjectSaver
which is able to save BranchGroup from the given scene.
scene - an instance of J3DeScene
this loader can save from| Method Detail |
|---|
public void saveProject(java.lang.String filePath)
filePath - path of the file the scene will be saved to
protected java.lang.Void doInBackground()
throws java.lang.Exception
doInBackground in class HierarchyWorkerjava.lang.Exception - if an error occursSwingWorker.doInBackground()protected void done()
done in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||